package com.suneee.refund.service;

import com.suneee.context.page.Page;
import com.suneee.refund.bean.Condition;
import com.suneee.refund.bean.ViewRefundApplyWrap;
import com.suneee.refund.entity.RefundApply;
import com.suneee.refund.entity.RefundCheckInfo;
import com.suneee.refund.entity.ViewRefundApply;

/**
 * 售后仓库处理service
 * 
 * @author liuxh
 */
public interface WarehouseDisposeService {

	/**
	 * 获取待验收商品列表
	 * 
	 * @return
	 */
	public Page<ViewRefundApplyWrap> getNotCheckedList(Condition condition);

	/**
	 * 获取该企业已经验收的商品列表
	 */
	public Page<ViewRefundApplyWrap> getCheckedList(Condition condition);
	
	/**
	 * 根据主键获取该企业的单条数据
	 */
	public RefundCheckInfo getCheckedByRefundId(String refundId);

	
	/**
	 * 提交验收结果
	 * @param refundCheckInfo
	 */
	public void doCheck(RefundCheckInfo refundCheckInfo) throws Exception;
	
	/**
	 * 历史订单查看
	 */
	public Page<ViewRefundApplyWrap> getHistoryRefundApplys (Condition condition);
	
	/**
	 * 根据refundId 查询售后信息。
	 * @param refundId
	 * @return
	 */
	public ViewRefundApply getViewRefundApplyByTidAndSkuId(String tid,String refundId);
	
	/**
	 * 换货出库
	 * @param apply
	 */
	public void doSendGoodsOfChange(RefundApply apply);
	
}
